<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<!-- 1.checkbox单选框 -->
			<label for="agreement">
				<input type="checkbox" name="" id="agreement" v-model="isAgree">同意协议
			</label>
			<h3>{{isAgree}}</h3>
			<button :disabled="!isAgree">下一步</button>
			<!-- 2.checkbox多选框 -->
			<br>
			
				<input type="checkbox" name="" v-model="hobby" id="favorite" value="篮球">篮球
				<input type="checkbox" name="" v-model="hobby" id="favorite" value="足球">足球
				<input type="checkbox" name="" v-model="hobby" id="favorite" value="羽毛球">羽毛球
				<input type="checkbox" name="" v-model="hobby" id="favorite" value="乒乓球">乒乓球
			<h3>{{hobby}}</h3>
		</div>
	</body>
	<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				isAgree : true,	//布尔类型
				hobby : []	//多选框
			}
		})
	</script>
</html>
